<?php
namespace app\common\validate\Subject;

use think\Validate;

// 课程订单的验证器
class Category extends Validate
{
    protected $rule =   [
        'name'  => 'require',
        'weight'   => 'require',
    ];

    protected $message  =   [
        'name.require' => '分类名称必须填写',
        'weight.require'     => '排序权重必须填写',
    ];
}